package com.annotation.demo5;

/**
 * @ClassName marineAnimal
 * @Description 海洋动物
 * @Author Kx
 * @Date 2025/3/30 16:06
 * @Version 1.0
 */
public class MarineAnimal extends Animal {
    private String name;

    public MarineAnimal(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /***
     * @author: kx
     * @date: 2025/3/30 15:04
     * @description: 海洋动物的吃方法
     */
    @Override
    public void eat() {
        super.eat();
    }

    /***
     * @author: kx
     * @date: 2025/3/31 15:17
     * @description: 海洋动物的睡眠方法
    */
    @Override
    public void sleep() {
        super.sleep();
    }
}
